// helloPlugin.ts
import { PiniaPluginContext } from 'pinia'

export function helloPlugin({ store }: PiniaPluginContext) {
  // 为每个 store 添加 hello 方法
  store.hello = () => {
    console.log(`Hello from plugin! (Store ID: ${store.$id})`)
  }
}
